Skip to content

Conversation

@chrisdavidmills
Copy link
Contributor

Description

Chromium 141 adds support for the precommitHandler option of the NavigateEvent.intercept() method. See https://chromestatus.com/feature/5134734612496384.

This PR adds documentation for it.

It also overhauls the intercept() method page in general, adding a bunch of details in a large "Description" section that was missing before. I think more work needs to be done here, but it is out of the scope of this PR for me to try to fix everything. For now, I've added a bit more information about how the intercept() features work so that the page is a bit more informative.

Motivation

Additional details

Related issues and pull requests

@chrisdavidmills chrisdavidmills requested a review from a team as a code owner October 14, 2025 08:48
@chrisdavidmills chrisdavidmills requested review from sideshowbarker and removed request for a team October 14, 2025 08:48
@github-actions github-actions bot added the Content:WebAPI Web API docs label Oct 14, 2025
@chrisdavidmills chrisdavidmills changed the title Add precommitHandler() and other info to Navigation API docs Technical review: Add precommitHandler() and other info to Navigation API docs Oct 14, 2025
@github-actions github-actions bot added the size/m [PR only] 51-500 LoC changed label Oct 14, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 14, 2025

Preview URLs

(comment last updated: 2025-10-23 07:08:27)

Copy link
Contributor

@noamr noamr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this, see comments

@chrisdavidmills chrisdavidmills requested a review from noamr October 14, 2025 15:37
@chrisdavidmills
Copy link
Contributor Author

@noamr thanks for the reviews. This one looks about ready to go on to the editorial review stage now, but feel free to add more comments if you think anything else still needs attention.

@chrisdavidmills chrisdavidmills changed the title Technical review: Add precommitHandler() and other info to Navigation API docs Editorial review: Add precommitHandler() and other info to Navigation API docs Oct 20, 2025
@noamr
Copy link
Contributor

noamr commented Oct 20, 2025

@noamr thanks for the reviews. This one looks about ready to go on to the editorial review stage now, but feel free to add more comments if you think anything else still needs attention.

Yes, technical LGTM from me!

@chrisdavidmills chrisdavidmills merged commit 6027542 into mdn:main Oct 23, 2025
8 checks passed
@chrisdavidmills chrisdavidmills deleted the navigateEvent-intercept-precommitHandler branch October 23, 2025 07:07
@chrisdavidmills
Copy link
Contributor Author

Looking good; thanks for the review, @sideshowbarker!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants